<template>
  <div>
    <div class="user_img">
      <img class="big_img" :src="user.icon" alt />
      <img class="sm_img" :src="user.icon" alt />
      <span>{{user.name}}</span>
    </div>
    <div>我的订单等信息</div>
  </div>
</template>

<script>
export default {
  name: 'my',
  data () {
    return {
      user: {
        name: '遇见美好事物',
        icon: 'https://ss1.bdstatic.com/70cFvXSh_Q1YnxGkpoWK1HF6hhy/it/u=3104441184,777940501&fm=26&gp=0.jpg'
      }
    }
  }
}
</script>

<style lang="less" scope>
.user_img {
  position: relative;
  .big_img {
    width: 100%;
    height: 40vh;
    filter: blur(5px);
  }
  .sm_img {
    border-radius: 50%;
    width: 100px;
    height: 100px;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
  }
  span {
    position: absolute;
    left: 50%;
    top: 70%;
    color: red;
    font-size: 30px;
    transform: translateX(-50%);
  }
}
</style>
